﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using BlueCMS.Core.Data.Query.Columns;

namespace BlueCMS.Core.Data.Query.Clauses
{
    public class ValuesClause : IValuesClause
    {
        public List<ValueColumn> ValueColumns { get; private set; }

        public ValuesClause()
        {
            ValueColumns = new List<ValueColumn>();
        }

        IValuesClause IValuesClause.Parameter(object value)
        {
            ValueColumn column = new ValueColumn(value, InsertType.Parameter);
            ValueColumns.Add(column);
            return this;
        }

        IValuesClause IValuesClause.Constant(object value)
        {
            ValueColumn column = new ValueColumn(value, InsertType.Constant);
            ValueColumns.Add(column);
            return this;
        }
    }
}
